/***************************************************************
 * Copyright (c)2009, Vinnie Vo, All rights reserved.
 * Email: vinh.votruong{at}gmail{dot}com
 * Website: www.vinhvt.com
 ***************************************************************/

package com.vinhvt.effiport.financial.ep;

import java.util.Date;

/**
 * @author Vinnie
 *
 */
public class Organization {
	
	private String symbol; // Abbreviated name of company.
	private String name;
	private long listingVolume;
	private long outstandingVolume;
	private Date ipoDate;		
	
	public Organization(String symbol) {
		setSymbol(symbol);
	}
	/**
	 * Instantiates a new organization.
	 * 
	 * @param symbol the symbol is the abbreviated name of an organization or her ticker
	 * @param name the name of an organization
	 */
	public Organization(String symbol, String name){
		setSymbol(symbol);
		setName(name);
	}	
	
	/**
	 * Sets the symbol.
	 * 
	 * @param symbol the new symbol
	 */
	void setSymbol(String symbol){
		this.symbol = symbol;
	}
	
	/**
	 * Gets the symbol of an Organization.
	 * 
	 * @return the symbol of an Organization
	 */
	public String getSymbol(){
		return this.symbol;
	}
	
	public void setName(String name){
		this.name = name;
	}
		
	public String getName(){
		return (this.name != null) ? this.name : this.symbol;
	}	
	
	public void setListingVolume(long volume){
		this.listingVolume = volume;
	}
	
	public long getListingVolume(){
		return this.listingVolume;
	}
	
	public void setOutstandingVolume(long volume){
		this.outstandingVolume = volume;
	}
	
	public long getOutstingVolume(){
		return this.outstandingVolume;
	}
	
	public void setIpoDate(Date date){
		this.ipoDate = date;
	}
	
	public Date getIpoDate(){
		return this.ipoDate;
	}
	
}
